.page {
  background-color: #f1f7fe;
}
.body {
  width: 100%;
  height: 100vh;
  background: url('../../assets/voice/bg.png') no-repeat center;
  background-size: 100% 100%;
  overflow: hidden;
}
::-webkit-scrollbar {
  display: none;
}
p {
  margin: 0;
}
.chat_content {
  width: 1200px;
  margin: 48px auto 0;
  height: calc(100vh - 330px);
  overflow-y: scroll;
  padding: 0 50px;
  position: relative;
  > img {
    width: 100%;
    height: 186px;
    margin-bottom: 24px;
  }
  > .avatar {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 0;
    left: 2px;
  }
  .content_box {
    width: 100%;
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    &.answer_box {
      padding-bottom: 48px;
    }
    .avatar {
      width: 32px;
      height: 32px;
      position: absolute;
      top: 0;
      left: -48px;
    }
    .from {
      margin: 0;
      position: absolute;
      bottom: 0;
      right: 0;
      > span {
        display: inline-block;
        width: 67px;
        height: 17px;
        animation: load 1s 0.1s infinite ease-in-out;
      }
      img {
        width: 32px;
        height: 32px;
        margin: 0 12px;
        &:last-child {
          width: 132px;
          height: 32px;
          margin: 0;
        }
      }
    }
    .generate {
      cursor: pointer;
      position: absolute;
      bottom: 8px;
      left: 24px;
      font-size: 14px;
      font-weight: 400;
      color: #165DFF;
      img {
        width: 16px;
        height: 16px;
        margin-right: 8px;
      }
    }
    .title {
      font-size: 18px;
      font-weight: 600;
      color: #1D2129;
      margin-bottom: 16px;
    }
    .messions {
      width: 100%;
      display: flex;
      justify-content: space-between;
    }
    .mession_left, .mession_right {
      &:hover {
        cursor: pointer;
        background: #E8F3FF;
        box-shadow: 0px 4px 16px 0px rgba(0,88,166,0.15);
        border: 1px solid #165DFF;
      }
      width: 49%;
      height: 123px;
      padding: 24px 24px 0 32px;
      background: #E9F5FF;
      border-radius: 8px;
      border: 1px solid #C4E4FF;
      display: flex;
      img {
        width: 48px;
        height: 48px;
        margin-right: 24px;
      }
      .mession_info {
        width: 100%;
        display: inline-block;
        p {
          &:first-child {
            font-size: 18px;
            font-weight: 600;
            color: #1D2129;
            width: 100%;
            display: flex;
            justify-content: space-between;
            img {
              width: 24px;
              height: 24px;
              margin: 0;
            }
          }
          &:last-child {
            font-size: 14px;
            font-weight: 400;
            color: #4E5969;
            line-height: 22px;
            margin-top: 6px;
          }
        }
      }
    }
    .mession_right {
      background: #ECF8F6;
      border: 1px solid #CEEFE9;
    }
    .mession_active {
      background: #E8F3FF;
      box-shadow: 0px 4px 16px 0px rgba(0,88,166,0.15);
      border: 1px solid #165DFF;
    }
    .try_input, .example {
      font-size: 14px;
      font-weight: 400;
      color: #4E5969;
      margin-bottom: 12px;
    }
    .example {
      background: #F7F8FA;
      border-radius: 4px;
      padding: 12px 16px;
    }
    .answer {
      line-height: 29px;
      white-space: pre-line;
    }
  }
  .question {
    width: 100%;
    padding: 8px 0;
    margin-bottom: 24px;
    position: relative;
    .avatar {
      width: 32px;
      height: 32px;
      position: absolute;
      top: 0;
      left: -48px;
    }
    p {
      font-size: 16px;
      font-weight: 500;
      color: #1D2129;
      line-height: 29px;
    }
  }
}
.chat_window {
  width: 1100px;
  margin: 16px auto;
  .chat_button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    .active {
      color: #165DFF;
      border-color: #165DFF;
    }
  }
  .chat_input {
    width: 100%;
    height: 135px;
    padding: 16px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0px 8px 16px 0px rgba(22,93,255,0.14);
    border-radius: 8px;
    .chat_input_bottom {
      width: 100%;
      text-align: right;
      margin-top: 8px;
      > span {
        display: inline-block;
        width: 67px;
        height: 17px;
        animation: load 1s 0.1s infinite ease-in-out;
      }
      > img {
        width: 32px;
        height: 32px;
        margin: 0 12px;
      }
    }
  }
}
// 语音动画
@keyframes load {
  0% {
    background-image: url('../../assets/voice/soundsFlow1.png');
    background-size: 100% 100%;
  }
  15% {
    background-image: url('../../assets/voice/soundsFlow2.png');
    background-size: 100% 100%;
  }
  30% {
    background-image: url('../../assets/voice/soundsFlow3.png');
    background-size: 100% 100%;
  }
  45% {
    background-image: url('../../assets/voice/soundsFlow2.png');
    background-size: 100% 100%;
  }
  60% {
    background-image: url('../../assets/voice/soundsFlow1.png');
    background-size: 100% 100%;
  }
  75% {
    background-image: url('../../assets/voice/soundsFlow2.png');
    background-size: 100% 100%;
  }
  90% {
    background-image: url('../../assets/voice/soundsFlow3.png');
    background-size: 100% 100%;
  }
  100% {
    background-image: url('../../assets/voice/soundsFlow2.png');
    background-size: 100% 100%;
  }
}
.footer {
  width: 100%;
  text-align: center;
  margin: 32px 0 24px;
  font-size: 12px;
  font-weight: 400;
  color: #86909C;
}